import App from './App'
import uView from './uni_modules/vk-uview-ui';
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
import "@/assets/baseStyle.css";
import LoadMore from '@/compoment/loadMore/loadMore.vue'
import Nav from '@/compoment/navBar.vue'
export function createApp() {
	const app = createSSRApp(App)
	app.component('loadMore', LoadMore)
	app.component('Nav', Nav)
	app.use(uView)
	app.config.globalProperties.$goUrl = (url) => {
		if (url.indexOf("/pages/") != -1 || url.indexOf("/subPackage/") != -1) {
			uni.navigateTo({
				url: url,
			});
		} else if (url == "back") {
			uni.navigateBack();
		}
	};
	return {
		app
	}
}
// #endif